package 杨佳佳.作业;

//猜数字：
//请猜（0~100):
//1你真厉害,一次就猜对了!
//2~～4 你很聪明,猜对了!
//5次含以上笨蛋,你猜这么多次!
//程序结束!


import java.util.Random;
import java.util.Scanner;

public class R {
    public static void main(String[]args) {
        Random r = new Random();
        int i = r.nextInt(100);
        int time = 1;
        Scanner input = new Scanner(System.in);
        int b = input.nextInt();
        while (true) {
            if (i == b & time <= 1) {
                System.out.println("你真厉害,一次就猜对了!");
                break;
            } else if (i == b & time <= 4 & time >= 2) {
                System.out.println("你很聪明,猜对了!");
                break;
            } else if (i == b & time > 4) {
                System.out.println("笨蛋,你猜这么多次!");
            }
            b = input.nextInt();
            time += 1;
            continue;
        }
    }
}

